package com.hippoframework.utils;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;

import cn.hutool.core.annotation.AnnotationUtil;

/**
 * 注解工具
 *
 * @author TylerW
 * @date 1/17/2020 5:49 PM
 */
public class AnnotationUtils extends AnnotationUtil {

    /**
     * 是否拥有指定注解，包含被组合的注解
     */
    public static boolean isAnnotationContains(AnnotatedElement annotationEle, Class<? extends Annotation> annotationClass) {
        return toCombination(annotationEle).isAnnotationPresent(annotationClass);
    }

}
